{include template('header','common')}
{php $userinfo = is_login();}
<link href="{THEME_STYLE_PATH}style/css/admode_ad.css" type="text/css" rel="stylesheet" />
	<div id="Mainbox">
		<!--插入侧边栏-->
		{include template('sidebar_login','common')}
		<!--插入侧边栏-->
		{include template('top_advance','common')}
		<!--左侧-->
		<div class="Inside_left">
			<!--打码-->
			<div class="Tycontent">
				<!--广告图片-->
				{if $posterlogo}
				<div class="Dmin_about"><a href="#"><img src="{$posterlogo}" height="181" width="714" /></a></div>
				{/if}
				<!--广告图片-->
				<!--体验规则-->
				<div class="tyzt_title"><span class="g2f">体验规则</span></div>
				<div class="tzt_txt">{$content}</div>
					
				<!--体验信息-->
				<div class="tyzt_title"><span class="g2f">体验信息</span></div>
				<?php
					if(!$userinfo) {
						$task_url = U('Member/Index/login', array('refresh' => __SELF__));
					} else {
						$task_url = U('Document/Index/jump', array('code' => authcode(id_encode($modelid, $id), 'ENCODE')));
					}	
				?>
				<div class="tzt_btn">
					{if !$userinfo}
						<p>对不起，你尚未登陆，如果你已注册及时赚，请<a href="{$task_url}" class="b40link">点此登陆</a>。&nbsp;&nbsp;还没有帐号？<a href="{U('Member/Index/register')}" class="sreglink">立即注册</a></p>
					{/if}												
						<p style="margin-top:10px;">
							<a href="{$task_url}" class="adreg"></a>						
							<a href="javascript:void(0);" onclick="juxiangyou.component.popup.submitAdCode(300)" class="adsub_ok"></a>							
							<!-- <a href="javascript:void(0);" onclick="awardGames();"  class="adlj_ok"></a> -->
						</p>
						<p style="color:#787878;">(PS：绑定信息只用做核实信息，请牢记自己的注册账号哦！)</p>
				</div>

				<table width="98%" border="0" cellpadding="0" cellspacing="1" bgcolor="#dedede" class="Jltab">
				<tbody><tr>
					<td bgcolor="#f3f3f3" class="title a1">序号</td>
					<td bgcolor="#f3f3f3" class="title">提交信息</td>
					<td bgcolor="#f3f3f3" class="title">奖励U币</td>
					<td bgcolor="#f3f3f3" class="title">奖励U豆</td>
					<td bgcolor="#636363" class="title">提交时间</td>
					<td bgcolor="#f3f3f3" class="title">审核时间</td>
					<td bgcolor="#f3f3f3" class="title">完成状态</td>
				  </tr>
				  {pc:document action="lists" num="100" docid="$id" uid="$userinfo[userid]" order="dateline DESC" tagfile="advert"}
				  {loop $data $r}
				  <tr>
					<td bgcolor="#f3f3f3" class="title">{$n}</td>
					<td bgcolor="#f3f3f3" class="title">{$r[content]}</td>
					<td bgcolor="#f3f3f3" class="title">{$do_coin}</td>
					<td bgcolor="#f3f3f3" class="title">{$do_bean}</td>
					<td bgcolor="#636363" class="title">{dgmdate($r[dateline])}</td>
					<td bgcolor="#f3f3f3" class="title">{if dgmdate($r[updatetime])}{dgmdate($r[updatetime])}{else}--{/if}</td>
					<td bgcolor="#f3f3f3" class="title">
						<?php 
						switch ($r['status']) {
							case '2':
								echo '<a href="javascript:void(0);"><img src="'.THEME_STYLE_PATH.'style/images/admode/yiling.png"></a>';
								break;
							case '-1':
								echo '<a href="javascript:void(0);"><img src="'.THEME_STYLE_PATH.'style/images/admode/shibai.png"></a>';
								break;
							case '1':
								echo '<a href="javascript:void(0);" onclick="awardGames('.$r['id'].');"><img src="'.THEME_STYLE_PATH.'style/images/admode/lingjiang.png"></a>';
								break;
							default:
								echo '<a href="javascript:void(0);"><img src="'.THEME_STYLE_PATH.'style/images/admode/daishen.png"></a>';
								break;
						}
						?>
					</td>
				  </tr>
				  {/loop}
				  {/pc}			
				  <tr>
					<td colspan="8" bgcolor="#f3f3f3">注:提交信息后请耐心等待审核，待图标点亮时请及时领取。</td>
				  </tr>
				</tbody></table>


				<!--体验条例-->
				<div class="tyzt_title"><span class="g2f">体验条例</span></div>
				<div class="tyzt_tl">
					<p>在体验过程中如有以下违规行为，将得不到{type_change()}币奖励，严重者直接冻结帐号：</p>
					<p>1.创建试玩账号昵称、角色名、公会或联盟名称不得跟及时赚内容相关。</p>
					<p>2.严禁在试玩平台里发表任何有关及时赚的话题，如“{type_change()}币奖励、毕业、走人”等。</p>
					<p>3.不要在试玩平台里发表诋毁商家试玩的言论，如“垃圾试玩、试玩太烂、拿完奖励不玩了”等。</p>
					<p>4.为了快速获取{type_change()}币奖励，使用第三方软件试玩平台。</p>
					<p>5.严禁注册多个及时赚账号试玩平台或体验广告以非法获取{type_change()}币奖励。</p>
					<p>6.严禁在试玩平台的同时还帮助其他会员代玩同一款试玩。</p>
					<p>7.不要在试玩平台里推荐其他玩家加入及时赚，以免对合作商家造成影响。</p>
				</div>
			</div>	
			
		</div>
		<!--左侧-->
		<!--右侧-->
		<div class="Inside_right">
	<!--体验步骤-->
	<div class="tystep"><img src="{THEME_STYLE_PATH}style/images/tystep.gif" /></div>
	<!--体验步骤-->
	<!--大家都在玩-->
	<div class="Main_Right">
		<p class="title">大家都在玩</p>
		<ul class="idx_dzw" id="jxy_ul_gameing" style="height:250px;overflow:hidden;">
			<li>
				<p><img src="{THEME_STYLE_PATH}style/images/12.jpg" class="dzw_head" width="50" /></p>
				<p class="a1"><span class="g46">congreat</span><span style="vertical-align:-2px; margin-left:2px;" class="vip-pic v0-guoqi"></span></p>
				<p class="a2">玩：<a href="#/hitsJump.php?adID=1891" target="_blank" class="b40link">卧龙13服</a><br>领取了<span class="ofe">5,000</span><img src="{THEME_STYLE_PATH}style/images/ub.gif" class="ub17"></p>
			</li>
		</ul>
	</div>

	<script type="text/javascript">
		var scrollup_reward = new VerticalScroll("jxy_ul_gameing");
	    scrollup_reward.LineHeight = 0;
	    scrollup_reward.Amount = 1;
	    scrollup_reward.Delay = 50;
	    scrollup_reward.Timeout = 1000;
	    scrollup_reward.AutoScroll();
	</script>
	<!--大家都在玩-->
	<div class="Main_Right">234*60</div>
	<!--客服中心-->
	<div class="Main_Right">
		<p class="title" style="margin-bottom:10px;">客服中心<label style="float:right;font-size:12px;font-weight: normal;"><a href="#" class="da3" target="_blank">更多</a></label></p>
		{pc:document action="lists" catid="30" num="8"}
		<ul class="faqlist">
		{loop $data $r}
			<li><strong>{$n}.&nbsp;</strong><a href="{$r[url]}" {title_style($r[style])}>{$r[title]}</a></li>
		{/loop}
		</ul>
		{/pc}
	</div>
	<!--客服中心-->
</div>		<!--右侧-->
		<div class="clear"></div>
	</div>
	<!--主体-->
{include template('footer','common')}
<script type="text/javascript">
var adID = '{$id}';
/* 领取奖励 */
function awardGames(id) {
	$.ajax({
		type:'POST',
		url:'{U("Document/AdvertFactory/award")}',
		data:{"id":id},
		dataType:'json',
		error:function(){
			alert('请求已经提交，请稍等~');
		},
		success:function(rst){
			if(rst.status==1){
				popup._reload = true;
				popup.awardGames(rst.u_coin, rst.u_bean);
			}else{
				popup.prompt(rst.info);
			}
		}

	});
	
}
/* 提交信息 */
function alertCode() {
	var code = $('#jxy_input_code').val();
	juxiangyou.core.func.hidePopupDiv($('#jxy_pop_adCode'));
	if(code.length>0){
		$.ajax({
			type:'POST',
			url:'{U("Document/AdvertFactory/dosubmit")}',
			data:{"code":code,"id":adID},
			dataType:'json',
			error:function(){
				alert('请求已经提交，请稍等~');
			},
			success:function(rst){
				if(rst.status==1){
					popup._reload = true;
					popup.prompt(rst.info);
				}else{
					popup.prompt(rst.info);
				}
			}
		});
	}else{
		alert('请将信息填写完整。');
		return false;
	}
}
</script>
</body>
</html>